package cn.hniu.service.Impl;

import cn.hniu.mapper.AdminMapper;
import cn.hniu.pojo.Admin;
import cn.hniu.service.AdminService;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;


    @Override
    public Admin login(String username, String password) {
        return adminMapper.login(username,password);
    }

    @Override
    public Admin quit(Integer id) {
        return adminMapper.quit(id);
    }
}
